//
//  editUsersNormalTableViewCell.m
//  one_mile_01
//
//  Created by 王雅蓉 on 15/9/15.
//  Copyright (c) 2015年 王雅蓉. All rights reserved.
//

#import "editUsersNormalTableViewCell.h"

@interface editUsersNormalTableViewCell ()
{
    UILabel *aLine;
}

@end

@implementation editUsersNormalTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self createSubviews];
    }
    
    return self;
}

-(void)createSubviews
{
    self.userNormL = [[UILabel alloc] initWithFrame:CGRectMake(16 * FITRATE, 45 * FITRATE / 2.0 - 20 * FITRATE, 80 * FITRATE, 40 * FITRATE)];
    //self.userNormL.backgroundColor = [UIColor yellowColor];
    self.userNormL.font = [UIFont systemFontOfSize:16.0f * FITRATE];
    self.userNormL.textColor = [UIColor blackColor];
    [self.contentView addSubview:_userNormL];
    
    UIImageView *pushIV = [[UIImageView alloc] initWithFrame:CGRectMake(WIDTH - 16 * FITRATE - 15 * FITRATE, 45 * FITRATE / 2.0 - 15 * FITRATE / 2.0, 15 * FITRATE, 15 * FITRATE)];
    pushIV.image = [UIImage imageNamed:@"manage_pushview@2x.png"];
    [self.contentView addSubview:pushIV];
    
    self.userNormInfoL = [[UILabel alloc] initWithFrame:CGRectMake(pushIV.frame.origin.x - 160 * FITRATE - 10 * FITRATE, 45 * FITRATE / 2.0 - 20 * FITRATE, 160 * FITRATE, 40 * FITRATE)];
    self.userNormInfoL.font = self.userNormL.font;
    self.userNormInfoL.textAlignment = NSTextAlignmentRight;
    self.userNormInfoL.textColor = RGBACOLOR(82, 82, 82, 1.0);
    //self.userNormTF.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:_userNormInfoL];
    
    aLine = [[UILabel alloc] initWithFrame:CGRectMake(_userNormL.frame.origin.x - 5 * FITRATE, (45 - 1) * FITRATE, WIDTH - (_userNormL.frame.origin.x - 5 * FITRATE) * 2, 1 * FITRATE)];
    aLine.backgroundColor = RGBACOLOR(232, 235, 236, 1.0);
    [self.contentView addSubview:aLine];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
